<template>
  <div v-show="show">
    <h3>Test</h3>
    <h4>{{ show }}</h4>
    <el-button @click="changeShow">test组件内部控制隐藏</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  props: ['show'],
  methods: {
    changeShow() {
      this.$emit('update:show', false)
    }
  }
}
</script>
